<template>
  <div class='works'>
    <Menu class="menu"></Menu>
    <div class="bm-content">
      <router-view/>
    </div>
  </div>
</template>
<script>
import Menu from './model/menu'
export default {
  components: {Menu},
  name: "",
  data() {
    return {};
  },
  methods: {
    setHeight(){
      var height = document.querySelector(".work-menu").clientHeight
      $(".bm-content").css({
        height:`calc(100% - ${height}px)`
      })
    }
  },
  created() {
    
  },
  mounted(){
    
  }

};
</script>
<style lang="scss" scoped>
.works {
  height: 100%;
  display: flex;
  flex-direction: column;

  .bm-content{
    height: 50%;
    flex-grow: 1;
    box-sizing: border-box;
    padding: 10px;
  }
}
</style>